﻿<Application
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    x:Class="Results.App">
    <Application.Resources>
        <!--This style is used for the buttons (that act like tabs) across the top of the application-->
        <Style
            x:Key="MainButton"
            TargetType="Button">
            <Setter
                Property="Background"
                Value="#FF1F3B53" />
            <Setter
                Property="Foreground"
                Value="#FF000000" />
            <Setter
                Property="Margin"
                Value="8,2,2,2" />
            <Setter
                Property="Padding"
                Value="3" />
            <Setter
                Property="BorderThickness"
                Value="1" />
            <Setter
                Property="BorderBrush">
                <Setter.Value>
                    <LinearGradientBrush
                        EndPoint="0.5,1"
                        StartPoint="0.5,0">
                        <GradientStop
                            Color="#FFA3AEB9"
                            Offset="0" />
                        <GradientStop
                            Color="#FF8399A9"
                            Offset="0.375" />
                        <GradientStop
                            Color="#FF718597"
                            Offset="0.375" />
                        <GradientStop
                            Color="#FF617584"
                            Offset="1" />
                    </LinearGradientBrush>
                </Setter.Value>
            </Setter>
            <Setter
                Property="Template">
                <Setter.Value>
                    <ControlTemplate
                        TargetType="Button">
                        <Grid>
                            <VisualStateManager.VisualStateGroups>
                                <VisualStateGroup
                                    x:Name="CommonStates">
                                    <VisualState
                                        x:Name="Normal" />
                                    <VisualState
                                        x:Name="MouseOver">
                                    </VisualState>
                                    <VisualState
                                        x:Name="Pressed">
                                    </VisualState>
                                    <VisualState
                                        x:Name="Disabled">
                                    </VisualState>
                                </VisualStateGroup>
                                <VisualStateGroup
                                    x:Name="FocusStates">
                                    <VisualState
                                        x:Name="Focused">
                                    </VisualState>
                                    <VisualState
                                        x:Name="Unfocused" />
                                </VisualStateGroup>
                            </VisualStateManager.VisualStateGroups>
                            <Rectangle
                                RadiusX="3"
                                RadiusY="3">
                                <Rectangle.Fill>
                                    <LinearGradientBrush
                                        EndPoint="0.5,1"
                                        StartPoint="0.5,0">
                                        <GradientStop
                                            Color="Black"
                                            Offset="0" />
                                        <GradientStop
                                            Color="Black"
                                            Offset="1" />
                                        <GradientStop
                                            Color="DarkGray"
                                            Offset="0.534" />
                                    </LinearGradientBrush>
                                </Rectangle.Fill>
                            </Rectangle>
                            <Rectangle
                                Margin="4">
                                <Rectangle.Fill>
                                    <LinearGradientBrush
                                        EndPoint="0.5,1"
                                        StartPoint="0.5,0">
                                        <GradientStop
                                            Color="Black"
                                            Offset="0" />
                                        <GradientStop
                                            Color="#FFADADAD"
                                            Offset="1" />
                                    </LinearGradientBrush>
                                </Rectangle.Fill>
                            </Rectangle>
                            <Rectangle
                                Fill="Black"
                                Margin="5"></Rectangle>
                            <ContentPresenter
                                Margin="6,6,12,6"
                                x:Name="contentPresenter"
                                HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                Content="{TemplateBinding Content}"
                                ContentTemplate="{TemplateBinding ContentTemplate}" />
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </Application.Resources>
</Application>
